package com.yc.Di.bean3_vlaue_spEL;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author zwei
 * @create 2024-07-31 18:42
 */
@Configuration
@ComponentScan
public class App1_main {
    public static void main(String[] args) {
        ApplicationContext ac=new AnnotationConfigApplicationContext(App1_main.class);
        Person p=ac.getBean("person",Person.class);
        System.out.println(p);
    }
}
